package dome1;

class Dog extends Animal {
    public Dog(String name) {
        super(name);
    }

    // 子类特有方法
    public void bark() {
        System.out.println(name + "汪汪叫");
    }
}

